From 6de2c7fa0e1738e180e47c6687aa31c98bf1891d Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 23 Jun 2014 18:21:08 +0200 Subject: [PATCH] wayland: don't change the cursor if there is no pointer https://bugzilla.gnome.org/show_bug.cgi?id=732206 --- gdk/wayland/gdkdevice-wayland.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index 327c12483e..9471d31b5b 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -183,6 +183,10 @@ gdk_wayland_device_update_window_cursor (GdkWaylandDeviceData *wd) buffer = _gdk_wayland_cursor_get_buffer (wd->cursor, wd->cursor_image_index, &x, &y, &w, &h, &scale); + + if (!wd->wl_pointer) + return FALSE; + wl_pointer_set_cursor (wd->wl_pointer, wd->enter_serial, wd->pointer_surface, -- 2.30.2